home *** CD-ROM | disk | FTP | other *** search
/ Champak 29 / Volume 29 - JOGO DISK .iso / Games / jigsaw_flower.swf / scripts / DefineButton2_35 / BUTTONCONDACTION on(release).as next >
Text File  |  2006-11-28  |  409b  |  21 lines

  1. on(release){
  2.    if(_name.substr(6,2) eq _droptarget.substr(7,2))
  3.    {
  4.       _X = getProperty("/Space" add _name.substr(6,2), _X);
  5.       _Y = getProperty("/Space" add _name.substr(6,2), _Y);
  6.       tellTarget("/space3")
  7.       {
  8.          gotoAndStop(2);
  9.       }
  10.       tellTarget("/piece3")
  11.       {
  12.          gotoAndStop(2);
  13.       }
  14.       stopDrag();
  15.    }
  16.    else
  17.    {
  18.       stopDrag();
  19.    }
  20. }
  21.